/*
   Copyright (C) 2009 Hugh Nelson.
   This file is part of Libbarteta.

   Libbarteta is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   Libbarteta is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with Libbarteta.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef BARTETA_H
#define BARTETA_H

#define BARTETA_MAX_DESTS 10

typedef struct barteta_struct* barteta_handle;

typedef struct
{
   char* name;
   char* estimates;
} barteta_dest;

typedef struct
{
   char* name;
   char* abbr;
   char* date;
   char* time;
   int numDests;
   barteta_dest* dests[ BARTETA_MAX_DESTS ];
} barteta_station;

barteta_handle   barteta_getHandle( void );
barteta_station* barteta_getStation( barteta_handle bh, char* stationAbbr );
void             barteta_releaseHandle( barteta_handle bh );
void             barteta_releaseStation( barteta_station* station );
int              barteta_getData( barteta_handle bh );

#endif
